﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace manhinhchao
{
    public partial class fr_Man_Hinh_Chao : Form
    {
       
        public fr_Man_Hinh_Chao()
        {
            InitializeComponent();

            this.StartPosition = FormStartPosition.CenterScreen;
            this.timerControl = new Timer();
            this.timerControl.Interval = 2000;
            this.timerControl.Tick += new EventHandler(timerControl_Tick);
            this.timerControl.Start();
        }
        private void Form1_Load(object sender, EventArgs e)
        {
            
        }
        
        private void timerControl_Tick(object sender, EventArgs e)
        {
            
            
            this.Hide();
            this.loginForm = new login();
            this.loginForm.StartPosition = FormStartPosition.CenterScreen;
            this.loginForm.Show();
            
            this.Enabled = false;

            this.timerControl.Dispose();
            //this.Close();

        }

        Timer timerControl;
        login loginForm;

        private void buttonX1_Click(object sender, EventArgs e)
        {

        }
    }
}
